package com.ujson.chat.common.enums;

import com.ujson.base.common.enums.BaseEnum;

/**
 * <h3>ujson-parent</h3>
 * <p>控制台命令类型</p>
 *
 * @author JerryLiu  a1031757312@gmail.com
 * @version 1.0
 * @date 2021-11-22 21:21
 */
public enum ConsoleCommandType implements BaseEnum {
    MENU(0, "菜单"),// 菜单
    CHAT(1, "聊天"),// 聊天
    LOGIN(2, "登录"),// 登录
    LOGOUT(3, "登出")// 登出
    ;

    private int key;
    private String tips;
    private ConsoleCommandType(int key, String tips) {
        this.key = key;
        this.tips = tips;
    }

    public int getKey() {
        return key;
    }

    public String getTips() {
        return tips;
    }

    public int getCode() {
        return this.key;
    }

    public String getMsg() {
        return this.tips;
    }
}
